from PyQt5 import QtCore,QtWidgets,QtGui
from PyQt5.QtCore import QObject,QPropertyAnimation,QRect,QPoint
from PyQt5.QtWidgets import QWidget,QPushButton,QLabel
from PyQt5.QtGui import QBrush,QPixmap,QPainter,QFont,QFontMetrics,QColor
import lowmainres
import trayiconmenures
import upmainres
import centerwindres
class Q360Label(QLabel):
    def __init__(self,pixscore,parent=None):
        super(Q360Label, self).__init__(parent)
        self.pixscore=QPixmap(pixscore)
    def paintEvent(self, a0: QtGui.QPaintEvent):
        pixscoreborder = QPixmap(":/image/examine_score.png")
        p = QPainter(self)
        p.drawPixmap(self.rect(),pixscoreborder)
        p.drawPixmap((self.width()-self.pixscore.width())/2,(self.height() - self.pixscore.height())/2,self.pixscore)

        font = QFont()
        font.setPixelSize(14)
        p.setFont(font)
        p.drawText(self.width()/2+self.pixscore.width()/2-5,self.height()/2+self.pixscore.height()/2-5,"分")

















